package com.ruicar.afs.cloud.apply.common.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruicar.afs.cloud.apply.contract.condition.ContractMoreFileCondition;
import com.ruicar.afs.cloud.apply.contract.vo.ContractFileVo;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * @author: Lee
 * @date: 2020/5/11 18:54
 * @description: 客户信息更新历史
 */
@Data
@TableName(value = "apply_cust_history", autoResultMap = true)
@Accessors(chain = true)
public class ApplyCustHistory extends BaseEntity<ApplyCustHistory> {
    /**
     * 申请编号
     */
    private String applyNo;
    /**
     * 客户ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long custId;
    /**
     * 案件角色
     */
    private String custRole;
    /**
     * 姓名
     */
    private String custName;
    /**
     * 证件类型
     */
    private String certType;
    /**
     * 证件号码
     */
    private String certNo;
    /**
     * 有效期起
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date certStartDate;
    /**
     * 有效期止
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date certEndDate;
    /**
     * 是否长期
     */
    private Boolean isLongTerm;
    /**
     * 30天内证件过期，页面表格底色标红
     */
    @TableField(exist = false)
    private Boolean isExpire;
    /**
     * 身份证照片
     * */
    @TableField(exist = false)
    private List<ContractFileVo> contractFileVos;
}
